package com.jrx.anytxn.investor.service;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.investor.entity.AmLoanMainInvestorInfo;
import com.jrx.anytxn.investor.entity.TlPaymentInvestorLog;

import java.util.Date;
import java.util.List;

/**
 * @program: anytxn-cf-transaction
 * @description: 资金方还款
 * @author: xiaoyu.jing
 * @date: 2020-05-27 17:40
 **/
public interface IInvestorPaymentService {

    /**
     * 正常流程还款分配
     *
     * @param paymentLog 还款流水信息
     * @author zhenghaopu
     * date: 2019/9/24 10:19
     */
    void paymentAllocation(TlPaymentInvestorLog paymentLog) throws Exception;

    /**
     * 差错调用还款分配
     * @param paymentLog
     * @param bussinessDate
     * @throws TxnException
     */
    void dealAllocation(TlPaymentInvestorLog paymentLog, List<AmLoanMainInvestorInfo> loanMainList,Date bussinessDate) throws Exception;
}
